<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>提现记录</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="/zhenze/Public/home/css/reset.css"/>
		<link rel="stylesheet" href="/zhenze/Public/home/css/tixianjilu.css" />
		<link rel="stylesheet" href="/zhenze/Public/home/css/font-awesome.min.css" />
	</head>
	<body>
		<div class="top">
			<a href="<?php echo U('Agent/tixianshenqing');?>"><i class="fa fa-angle-left"></i></a>
			<p>提现记录</p>
		</div>
		<div class="list">
		<ul>
			<?php if(is_array($applyrecord)): $i = 0; $__LIST__ = $applyrecord;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><li>
				<p>提现成功<span><?php echo ($data["amount"]); ?></span></p>
				<p><?php echo (date("Y-m-d",$data["apply_time"])); ?><span><?php echo (date("h:i:s",$data["apply_time"])); ?></span><span><?php echo ($data["bankcode"]); ?></span></p>
			</li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
		</div>
		<button onclick="getmore()" id="morebtn" data='1' class="btn00">更多</button>
		<script type="text/javascript" src="/zhenze/Public/home/js/jquery-3.1.1.min.js" ></script>
		<script src="/zhenze/Public/home/js/screenSize.js" type="text/javascript" charset="utf-8"></script>
		<script>
		function getmore(){
			var page=parseInt($('#morebtn').attr("data"))+1;
			$.getJSON("<?php echo U('agent/tixianjilu');?>&p="+page,function(result){
				$('#morebtn').attr("data",page);//重置当前页数
				var data=result.applyrecord;
				if(data.length>0){
					var html="";
					for(var i=0;i<data.length;i++){
					html+="<ul>";
			
						html+="<li>";
							html+="<p>"+提现成功+"<span>"+data[i].amount+"</span></p>";
							html+="<p>"+data[i].time1+"<span>"+data[i].time2+"</span><span>"+data[i].bankcode+"</span></p>";
						html+="</li>";
						
					html+="</ul>";
					}
					$(".list").append(html);
				}else{
					$("#morebtn").html('亲，没有数据了！');
				}
			});
		}
		</script>
	</body>
</html>